package com.yonyou.brigade.order_center.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author xuexmf@yonyou.com
 * @since 2018-08-08
 */
@TableName("bri_hotel_approval_flow")
public class BriHotelApprovalFlow extends Model<BriHotelApprovalFlow> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 订单号
     */
    @TableField("order_no")
    private String orderNO;
    /**
     * 审批单号
     */
    @TableField("approval_no")
    private String approvalNo;
    /**
     * 当前步骤
     */
    @TableField("step_no")
    private String stepNO;
    /**
     * 当前步骤状态
     * 0: 待审核
     * 1: 已审核
     * 2：不同意审核
     */
    @TableField("step_run_status")
    private String stepRunStatus;
    /**
     * 处理人名称
     */
    @TableField("dealer_user_name")
    private String dealerUserName;
    /**
     * 审批意见
     */
    @TableField("check_remark")
    private String checkRemark;
    /**
     * 审批时间
     */
    @TableField("check_time")
    private Date checkTime;

    private Date ts;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderNO() {
        return orderNO;
    }

    public void setOrderNO(String orderNO) {
        this.orderNO = orderNO;
    }

    public String getApprovalNo() {
        return approvalNo;
    }

    public void setApprovalNo(String approvalNo) {
        this.approvalNo = approvalNo;
    }

    public String getStepNO() {
        return stepNO;
    }

    public void setStepNO(String stepNO) {
        this.stepNO = stepNO;
    }

    public String getStepRunStatus() {
        return stepRunStatus;
    }

    public void setStepRunStatus(String stepRunStatus) {
        this.stepRunStatus = stepRunStatus;
    }

    public String getDealerUserName() {
        return dealerUserName;
    }

    public void setDealerUserName(String dealerUserName) {
        this.dealerUserName = dealerUserName;
    }

    public String getCheckRemark() {
        return checkRemark;
    }

    public void setCheckRemark(String checkRemark) {
        this.checkRemark = checkRemark;
    }

    public Date getCheckTime() {
        return checkTime;
    }

    public void setCheckTime(Date checkTime) {
        this.checkTime = checkTime;
    }

    public Date getTs() {
        return ts;
    }

    public void setTs(Date ts) {
        this.ts = ts;
    }

    public static final String ID = "id";

    public static final String ORDER_NO = "order_no";

    public static final String APPROVAL_NO = "approval_no";

    public static final String STEP_NO = "step_no";

    public static final String STEP_RUN_STATUS = "step_run_status";

    public static final String DEALER_USER_NAME = "dealer_user_name";

    public static final String CHECK_REMARK = "check_remark";

    public static final String CHECK_TIME = "check_time";

    public static final String TS = "ts";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "BriHotelApprovalFlowMapper{" +
                "id=" + id +
                ", orderNO=" + orderNO +
                ", approvalNo=" + approvalNo +
                ", stepNO=" + stepNO +
                ", stepRunStatus=" + stepRunStatus +
                ", dealerUserName=" + dealerUserName +
                ", checkRemark=" + checkRemark +
                ", checkTime=" + checkTime +
                ", ts=" + ts +
                '}';
    }
}
